{include file="public/head"/}
<style>
    .layui-layer-tips{width: auto!important;}
</style>
<div class="layui-fluid" id="LAY-app-message">
    <div class="layui-card">
        <div class="layui-card-header">列表</div>
        <div class="layui-card-body">
            <div class="clt-auth-btns" style="margin-bottom: 10px;">
                <div class="layui-inline" >
                    <input class="layui-input" name="key" id="key" placeholder="请输入关键字" autocomplete="off">
                </div>
                <button class="layui-btn" data-type="reload">搜索</button>
                <button class="layui-btn layui-btn-danger" data-type="direct">删除</button>
                <button class="layui-btn" style="float: right;" data-type="add">添加</button>
            </div>
            <table class="layui-table" id="list" lay-filter="list"></table>
        </div>
    </div>
</div>
{include file="public/foot"/}
<script type="text/html" id="title">
    <span style="{{d.title_style}}">{{d.title}}</span>
    {{# if(d.thumb){ }}<img src="__ADMIN__/images/image.gif" onmouseover="layer.tips('<div style=\'background-color: #fff;\'><img style=\'max-width: 300px;\' src={{d.thumb}}></div>',this,{tips: [1, '#fff']});" onmouseout="layer.closeAll();">{{# } }}
</script>
<script type="text/html" id="action">
    {{# if(d.is_show==1){ }}
    <a href="{{d.url}}" target="_blank" class="layui-btn layui-btn-xs layui-btn-normal">预览</a>
    {{# } }}
    <a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
</script>
<script>
    var url= "{:url('index',['catid'=>input('catid')])}";
    var editUrl = "{:url('edit')}";
    var addUrl = "{:url('add',['catid'=>input('catid')])}";
    var cfUrl = "{:url('cf')}";
    var delUrl = "{:url('del')}";
    layui.config({
        base: '__LAYADMIN__/',
        version: true
    }).extend({
        index: 'lib/index' //主入口模块
    }).use(['index','content']);
</script>
</body>
</html>